<?php
/* @var $this ReceiptController */
/* @var $model Receipt */

$this->breadcrumbs=array(
	'Receipts'=>array('index'),
	$model->id,
);

if ((Yii::app()->user->type==="Admin")) {
$this->menu=array(
	array('label'=>'List Order', 'url'=>array('index')),
	array('label'=>'Create Order', 'url'=>array('create')),
	array('label'=>'Update Order', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Order', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Order', 'url'=>array('admin')),
);
}else if((Yii::app()->user->type==="Pharmacist")){
$this->menu=array(
        array('label'=>'Manage', 'url'=>array('admin')),
        array('label'=>'List', 'url'=>array('index')),
        array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
        array('label'=>'Create', 'url'=>array('create')),
        );
		}
?>

<h1>View Receipt #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'receipt_date',
		'payment_total',
		'orderheader_id',
		'payment_type',
	),
)); ?>
